package textbasedapp;

import java.util.*;

public class MyCollection {

	public static void main(String[] args) {
		//String[] arr = { "adasd", "asda" };

		List<String> list = new ArrayList<String>();
		list.add("John");
		list.add("John");

		Set<String> set = new HashSet<String>();
		set.add("John");
		set.add("John");

		System.out.println("List:" + list.size());
		System.out.println("Set:" + set.size());
	}

}
